home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96b.txt / 000038_icon-group-sender _Sun Oct 20 20:55:01 1996.msg < prev    next >
Internet Message Format  |  1997-01-02  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 21 Oct 1996 10:19:36 MST
  2. Date: Sun, 20 Oct 1996 20:55:01 -0500
  3. Message-Id: <199610210155.UAA17336@ns1.computek.net>
  4. Mime-Version: 1.0
  5. Content-Type: text/plain
  6. Content-Transfer-Encoding: 7bit
  7. From: gep2@computek.net
  8. Subject: Saving Records, Lists, etc. to disk
  9. To: icon-group@cs.arizona.edu
  10. X-Mailer: SPRY Mail Version: 04.00.06.17
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12.  
  13. >Is it possible to save one of advanced data types
  14. such as Record, List, Table, Set, ... to disk?
  15. Then in another session, read this back in to an 
  16. Icon program.
  17.  
  18. >For the tree structure illustrated on pages 
  19. 189-192,it is possible to convert this to a string.
  20.  
  21. Yes, that works for tree structures but not for a generalized linked structure. 
  22. Nor does it solve the problem if you want to store tables, lists, character 
  23. sets, user defined data types or the like.  It's a non-trivial problem!
  24.  
  25. >What I am looking for is disk storage of the 
  26. structure in its "native" form and then later 
  27. access to this structure. It would seem this would
  28. be a good feature for Icon.
  29.  
  30. In many implementations of SNOBOL4 (SNOBOL4+ for example) you can do this, IF 
  31. you're wanting to reload the structure into a reload the SAME program that saved 
  32. it, by using the SAVE() function.  That function saves the program, along with 
  33. all currently active data structures and values in a way that can be restored 
  34. later.
  35.  
  36. Gordon Peterson
  37. http://www.computek.net/public/gep2/
  38.  
  39.